package com.hnichr.ump.security;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.interceptor.KeyGenerator;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

@Component("securityKeyGenerator")
public class SecurityKeyGenerator implements KeyGenerator {

    @Value("${spring.application.name}")
    private String applicationName;


    @Override
    public Object generate(Object target, Method method, Object... params) {
        return applicationName;
    }
}
